﻿using System;

namespace EasyLib.Configuration
{
    /// <summary>
    /// Custom exception
    /// </summary>
    public class ConfigurationException : ApplicationException
    {
        public ConfigurationException(string e) : base(e) { }

        public ConfigurationException(string e, string extraMessage) : this(e + extraMessage) { }

    }

    public sealed class FileConfigurationException : ConfigurationException
    {

        public FileConfigurationException(string e) : base(e) { }

        public FileConfigurationException(string e, string extraMessage) : base(e, extraMessage) { }
    }

    public sealed class DatabaseConfigurationException : ConfigurationException
    {
        public DatabaseConfigurationException(string e) : base(e) { }
    }
}